﻿namespace NoORM.Core.Contract
{
    /// <summary>
    /// 统计表达式
    /// </summary>
    public class FuncExpression
    {
        /// <summary>
        /// 统计表达式
        /// </summary>
        /// <param name="functionName">统计函数名称</param>
        /// <param name="field">字段名称</param>
        /// <param name="resultName">计算后的字段名</param>
        public FuncExpression(string functionName,string field,string resultName)
        {
            this.FunctionName = functionName;
            this.Field = field;
            this.ResultName = resultName;
        }

        /// <summary>
        /// 函数名称
        /// </summary>
        public string FunctionName { get; set; }

        /// <summary>
        /// 统计字段
        /// </summary>
        public string Field { get; set; }

        /// <summary>
        /// 计算后的字段名
        /// </summary>
        public string ResultName { get; set; }
    }
}
